package top.lanscarlos.ashcraft.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.lanscarlos.ashcraft.pojo.Order;
import top.lanscarlos.ashcraft.repository.OrderRepository;

import java.util.List;

/**
 * Ashcraft
 * top.lanscarlos.ashcraft.service
 *
 * @author Lanscarlos
 * @since 2022-05-30 17:46
 */
@Service
public class OrderService {

    @Autowired
    private OrderRepository repository;

    public Object query(int userId) {
        return repository.query(userId);
    }

    public Order purchase(int userId) {
        return repository.purchase(userId);
    }

}
